import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import MovieDetail from '@/views/MovieDetail.vue'
import Analytics from '@/views/Analytics.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/movies/:id',
      name: 'movie-detail',
      component: MovieDetail
    },
    {
      path: '/analytics',
      name: 'analytics',
      component: Analytics
    }
  ]
})

export default router 